package com.example.lib;

import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;
import java.util.List;

public abstract class JsonCallback<T> {

    public JsonCallback(){
        Type type = getClass().getGenericSuperclass();
        ParameterizedType parameterizedType = (ParameterizedType)type;
        System.out.println(parameterizedType);
    }
    public void onSuccess(){}

    public static void main(String[] args){

        new JsonCallback<List<JsonBean>>(){
            @Override
            public void onSuccess() {
            }
        };

    }
}
